<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../js/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../js/table/bootstrap-table.css">
    <link rel="stylesheet" href="../style/reset.css"/>
    <link rel="stylesheet" href="../style/base.css"/>
    <link rel="stylesheet" href="../js/src/docs.css">
    <link rel="stylesheet" href="../style/page.css">

    <script src="../js/jquery/jquery.min.js"></script>
    <script src="../js/bootstrap/js/bootstrap.min.js"></script>
    <script src="../js/table/bootstrap-table.js"></script>
    <script src="../js/src/docs.js"></script>
    <script src="../js/src/examples.js"></script>

    <style>
        html,body {height: 100%;}
        body {overflow: auto;}
    </style>

</head>
<body>

<div class="dialog_base">

    <div class="warpbox">
        <div id="tanContainer" class="tabWarp">
            <div id="tab">
                <ul>
                    <li><div class="tab_on">直播1</div></li>
                    <li><div class="tab_off">直播2</div></li>
                    <li><div class="tab_off">直播3</div></li>
                </ul>
            </div>
            <div id="tabCon" class="contentWarp">
                <div class="fdiv">
                    <div>内容一</div>
                    <div>内容一 1 1  1 </div>
                </div>
                <div class="ndiv">内容二</div>
                <div class="ndiv">内容三</div>
            </div>
        </div>
    </div>

</div>

<script type="text/javascript">

    var tabs=$("#tab>ul").children("li");
    var divs=$("#tabCon").children("div");

    for(var i=0;i<tabs.length;i++){
        tabs[i].onclick=function(){change(this);}
    }

    function change(obj){
        for(var i=0;i<tabs.length;i++){
            if(tabs[i]==obj){
                tabs[i].firstChild.className = "tab_on";
                divs[i].className="fdiv";
            }else{
                tabs[i].firstChild.className = "tab_off";
                divs[i].className="ndiv";
            }
        }
    }

</script>
</body>
</html>